package com.bottle.mode;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: chenyuncong
 * @Date: 2020/4/29 11:57
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RequestMessage {
    //发送人加密id
    private String encrUserId;
    //接收桥梁解密id
    private String encrBridgeId;
    //内容
    private String content;
    //发送时间
    private Long sendTime;
    //消息类型，0聊天，1文件，表情包，
    private Integer type=0;

    public RequestMessage(String encrUserId, String encrBridgeId, String content) {
        this.encrUserId = encrUserId;
        this.encrBridgeId = encrBridgeId;
        this.content = content;
        this.sendTime = System.currentTimeMillis();
    }

}
